//
//  NSNumber+CYNumber.m
//  cyjf
//
//  Created by tauCross on 2017/5/15.
//  Copyright © 2017年 Auto Financing. All rights reserved.
//

#import "NSNumber+CYNumber.h"



@implementation NSNumber (CYNumber)

- (NSString *)amountString
{
    NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
    formatter.positiveFormat = @"###,##0.00;";
    return [formatter stringFromNumber:self];
}

- (NSDate *)cy_date
{
    return [NSDate dateWithTimeIntervalSince1970:self.doubleValue / 1000.0];
}

@end
